/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.ebs.permission;

import java.util.Map;

import org.koron.ebs.util.Propertible;

/**
 * 判断规则
 * 
 * @author 方志文
 * 
 */
public interface Rule extends Propertible, EntityID {
	/**
	 * 检测
	 * 
	 * @param user 用户
	 * @param role 角色
	 * @param operation 操作
	 * @param data 单据数据
	 * @return
	 */
	public boolean inspect(User user, Role role, Operation operation, Map<String,Object> data);
}
